package org.helgoboss.mucommander

import java.io.File
import org.helgoboss.scala_additions.Implicits._

class MucommanderCommand(
            val exeFile: File, 
            val configDir: Option[File],
            val leftDir: Option[File], 
            val rightDir: Option[File]
        ) {
        
    val components = {
        List (
            List(exeFile.osDependentPathExpression),
            configDir match {
                case Some(d) => List("-p", d.osDependentPathExpression)
                case None => Nil
            },
            leftDir.map(_.osDependentPathExpression).toList,
            rightDir.map(_.osDependentPathExpression).toList
        ).flatten
    }
    
}